<!--
子组件 => 父组件 传值 $emit
-->
<template>
  <div>
    <h1>App2</h1>
    <BMIForm @emit-data="calcBMI" />
  </div>
</template>

<script>
import BMIForm from '@/components/BMIForm'

export default {
  name: "App2",
  components: {
    BMIForm
  },
  methods: {
    calcBMI(option) {
      // ajax
      console.log('子组件传值触发了我')
      console.log(option)
    }
  }
}
</script>

<style scoped>

</style>